import request from '@/utils/request';

export function getCurrency(params) {
  return request({
    url: 'currencydata',
    method: 'GET',
    params,
  });
}

export function getformInline(data){
    return request({
        url: `currencydata?name=${data.name}`,
        method: 'GET',
        
    })
}
//查
export function getCurrencys(){
    return request({
        url: 'currencydata',
        method: 'GET',
    })
}
//增
export function addCurrency(data){
  return request({
      url: 'currencydata',
      method: 'post',
      data
  })
}
//删
export function delCurrency(id){
  return request({
      url:`currencydata/${id}`,
      method: 'delete',
      
  })
}
//改
export function putCurrency(data){
  return request({
      url:`currencydata/${data.id}`,
      method: 'patch',
      data
  })
}



